<?php
session_start();

if (isset($_SESSION['user']) && isset($_SESSION['state'])){
session_unset();
header ("Location: index.php");

}
?>
